package com.itfreer.data.metadata;

/**
 * 定义字段信息类
 */
public class Field {

	private int id;

	/**
	 * 字段名称
	 */
	private String fieldName;

	/**
	 * 字段别名
	 */
	private String fieldAliasName;

	/**
	 * 类型
	 */
	private String fieldType;

	/**
	 * 是否是主键
	 */
	private boolean isKey;

	/**
	 * 长度
	 */
	private int maxLen;

	/**
	 * 小数位长度
	 */
	private int decimaldigits;

	/**
	 * 默认值
	 */
	private String defValue;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldAliasName() {
		return fieldAliasName;
	}

	public void setFieldAliasName(String value) {
		fieldAliasName = value;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public void setKey(boolean isKey) {
		this.isKey = isKey;
	}

	public boolean getIsKey() {
		return isKey;
	}

	public int getMaxLen() {
		return maxLen;
	}

	public void setMaxLen(int maxLen) {
		this.maxLen = maxLen;
	}

	public int getDecimaldigits() {
		return decimaldigits;
	}

	public void setDecimaldigits(int decimaldigits) {
		this.decimaldigits = decimaldigits;
	}

	public String getDefValue() {
		return defValue;
	}

	public void setDefValue(String defValue) {
		this.defValue = defValue;
	}
}